package com.starlight.easybuyprictice.interceptor;

import com.starlight.easybuyprictice.entity.Token;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author yfy2001
 * @date 2022/11/28 22:08
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RoleAuthentication {
    Token.Type[] roles() default{
        Token.Type.TT_ADMIN,
            Token.Type.TT_DEVELOP
    };
}
